﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="History.aspx.cs" Inherits="SubmitOverTime_History" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table align="center" style="width: 397px">
            <tr>
                <td style="width: 77px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid; height: 21px;">
                    <p>开始时间：</p>
                    </td>
                <td style="width: 173px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid; height: 21px;">
                    <asp:TextBox ID="txtStartTime" runat="server" Width="108px"></asp:TextBox></td>
                <td style="width: 73px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid; height: 21px;">
                    结束时间：</td>
                <td style="border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid; height: 21px; width: 128px;">
                    <asp:TextBox ID="txtEndTime" runat="server" Width="116px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" style="height: 21px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid;">
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
                <td colspan="2" style="height: 21px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="4" style="height: 21px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid;">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                        <asp:ListItem Value="0">只显示全部</asp:ListItem>
                        <asp:ListItem Value="1">只显示折算成年假的纪录</asp:ListItem>
                        <asp:ListItem Value="2">只显示折算成津贴的纪录</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="center" colspan="4" style="border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid; height: 21px">
                    <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" /></td>
            </tr>
            <tr>
                <td colspan="4" style="height: 21px; border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid;">
                    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="388px" Visible="False">
                        审批者：<asp:Label ID="lblApproverName" runat="server" Width="85px"></asp:Label><br />
                        加班理由：<asp:Label ID="lblReason" runat="server" Width="301px"></asp:Label><br />
                        否决理由：<asp:Label ID="lblDenyReason" runat="server" Visible="False" Width="300px"></asp:Label></asp:Panel>
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
                        GridLines="Horizontal" Width="582px" OnRowCommand="GridView1_RowCommand" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                        <FooterStyle BackColor="White" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField HeaderText="开始时间" DataField="StartTime" />
                            <asp:BoundField HeaderText="结束时间" DataField="EndTime" />
                            <asp:BoundField HeaderText="提交时间" DataField="SubmitTime" />
                            <asp:BoundField HeaderText="类型" DataField="TypeName" />
                            <asp:BoundField HeaderText="状态" DataField="Status" />
                            <asp:BoundField HeaderText="小时数" DataField="Hours" />
                            <asp:ButtonField Text="详细情况．．．" CommandName="Select" HeaderText="详细情况" />
                        </Columns>
                        <RowStyle BackColor="White" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="4" rowspan="4" style="border-right: #66ccff 1px solid; border-top: #66ccff 1px solid; border-left: #66ccff 1px solid; border-bottom: #66ccff 1px solid; height: 21px">
                    <asp:Label ID="lblMessage" runat="server" Width="470px" Visible="False"></asp:Label></td>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
        </table>
    
    </div>
</asp:Content>